/**
 * 
 */
package com.chinasofti.project.web.form;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.chinasofti.project.common.web.BaseForm;

/**
 * @author liuji
 *
 */
public class ShippingAddressForm extends BaseForm {
	@Length(min = 1, max = 16, message = "收货人姓名的长度应该在{min}与{max}之间")
	private String saReceiveName;

	@Length(min = 1, max = 160, message = "收货人地址的长度应该在{min}与{max}之间")
	private String saReceiveAddress;

	@NotBlank(message = "手机不能为空")
	@Pattern(regexp = "^\\d{11}$", message = "手机格式不是11位")
	private String saReceivePhone;

	public String getSaReceiveName() {
		return saReceiveName;
	}

	public void setSaReceiveName(String saReceiveName) {
		this.saReceiveName = saReceiveName;
	}

	public String getSaReceiveAddress() {
		return saReceiveAddress;
	}

	public void setSaReceiveAddress(String saReceiveAddress) {
		this.saReceiveAddress = saReceiveAddress;
	}

	public String getSaReceivePhone() {
		return saReceivePhone;
	}

	public void setSaReceivePhone(String saReceivePhone) {
		this.saReceivePhone = saReceivePhone;
	}

}
